home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / XLisp 2.1e3 / Sources / macint.h < prev    next >
Text File  |  1993-11-13  |  2KB  |  79 lines

  1. #define INT_MAX    +32767
  2. #define INT_MIN    -32767
  3. #define NIL 0L
  4.  
  5. /* resource id's */
  6. #define CWINRES                400
  7. #define GWINRES                401
  8. #define MBAR_RES            400
  9. #define APPLE_MENU_RES        400
  10. #define FILE_MENU_RES        401
  11. #define EDIT_MENU_RES        402
  12. #define CONTROL_MENU_RES    403
  13. #define STRINGS_RES            400
  14.  
  15. /* Apple menu */
  16. #define ABOUT_ITEM            1
  17. #define ABOUT_BOX            400
  18.  
  19. /* File menu */
  20. #define LOAD                1
  21. #define LOAD_NOISILY        2
  22. #define QUIT                4
  23.  
  24. /* Edit menu */
  25. #define UNDO                1
  26. #define CUT                    3
  27. #define COPY                4
  28. #define PASTE                5
  29. #define CLEAR                6
  30.  
  31. /* Control menu */
  32. #define BREAK                1
  33. #define CONTINUE            2
  34. #define CLEAN_UP            3
  35. #define CANCEL_INPUT        4
  36. #define TOP_LEVEL            5
  37. #define SHOW_GRAPHICS        7
  38. #define SPLIT_SCREEN        8
  39.  
  40. /* window sizing/dragging stuff */
  41. #define DRAG_THRESHOLD 8
  42. #define MIN_WIN_HEIGHT 80
  43. #define MIN_WIN_WIDTH 120
  44.  
  45. #define MAX_BUF 250                        /* max chars in output buffer */
  46. #define SCROLLBACK_THRESHHOLD 30000     /* max chars kept in window */
  47. #define DELETE_BLOCK 10000              /* how many chars to delete when threshhold reached */
  48.  
  49. #define LINEHEIGHT 11                    /* height in pixels of 9-point Geneva, the font used */
  50. #define STACKMIN 400000                    /* amout of memory for application stack */
  51. #define MASTERS 3                        /* arbitrary -- how many times to call MoreMasters() */
  52.  
  53. /* key codes */
  54. #define RETURN        0x0d
  55. #define ENTER        0x03
  56. #define DELETE        0x08
  57. #define FWDDEL        0x7F
  58. #define CLRKEY        0x1b
  59. #define PAGEUP        0x0b
  60. #define PAGEDN        0x0c
  61. #define HOMEKEY        0x01
  62. #define ENDKEY        0x04
  63. #define HELPKEY        0x05
  64. #define FNKEY        0x10
  65. #define LEFTARROW    0x1c
  66. #define RIGHTARROW    0x1d
  67. #define UPARROW        0x1e
  68. #define DOWNARROW    0x1f
  69. #define DBLQUOTE    '\"'
  70.  
  71. /* useful definitions */
  72. #define MBAR_HEIGHT        20
  73. #define TITLEBAR_HEIGHT    20
  74. #define SCROLLER_WIDTH    15
  75. #define SCREEN_MARGIN    2
  76. #define TEXT_MARGIN        4
  77. #define GRAFWIN_HEIGHT    232
  78.  
  79.